Q  =  require 'q'
fs =  require 'fs'


return Q.fcall ()->
  10

deferred = Q.defer()

fs.readFile '../file/input.txt','utf-8',(error,text)->
  if error
    deferred.reject new Error error
  else
    deferred.resolve text

  deferred.promise